.popover {
  background-color: $popover-bg;
  border: 1px solid $popover-fallback-border-color;
  border: 1px solid $popover-border-color;
  > .arrow {
    &,
    &:after {
      border-color: transparent;
    }
  }

  &.top > .arrow {
    border-top-color: $popover-arrow-outer-fallback-color; // IE8 fallback
    border-top-color: $popover-arrow-outer-color;
    &:after {
      border-top-color: $popover-arrow-color;
    }
  }
  &.right > .arrow {
    border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback
    border-right-color: $popover-arrow-outer-color;
    &:after {
      border-right-color: $popover-arrow-color;
    }
  }
  &.bottom > .arrow {
    border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback
    border-bottom-color: $popover-arrow-outer-color;
    &:after {
      border-bottom-color: $popover-arrow-color;
    }
  }

  &.left > .arrow {
    border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback
    border-left-color: $popover-arrow-outer-color;
    &:after {
      border-left-color: $popover-arrow-color;
    }
  }
}

.popover-title {
  background-color: $popover-title-bg;
  border-bottom: 1px solid darken($popover-title-bg, 5%);
}

@mixin popover-title-style($bgcolor) {
  color: #fff;
	background-color: $bgcolor;
	border-color: $bgcolor;
}

.popover-primary+.popover .popover-title{
	@include popover-title-style($popover-title-primary-bg);
}

.popover-success+.popover .popover-title{
	@include popover-title-style($popover-title-success-bg);
}
.popover-info+.popover .popover-title{
	@include popover-title-style($popover-title-info-bg);
}
.popover-warning+.popover .popover-title{
	@include popover-title-style($popover-title-warning-bg);
}
.popover-danger+.popover .popover-title{
	@include popover-title-style($popover-title-danger-bg);
}